.\"						Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH debugfs.reiser4 8 "02 Oct, 2002" reiser4progs "reiser4progs manual"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
debugfs.reiser4 \- the program for debugging reiser4 filesystem.
.SH SYNOPSIS
.B debugfs.reiser4
[ options ] FILE
.SH DESCRIPTION
.B debugfs.reiser4
is reiser4 filesystem debug program. You can disscover the internal
reiser4 filesystem structures by using it.
.SH COMMON OPTIONS
.TP
.B -V, --version
prints program version.
.TP
.B -?, -h, --help
prints program help.
.TP
.B -y, --yes
assumes an answer 'yes' to all questions.
.TP
.B -f, --force
forces debugfs to use whole disk, not block device or mounted partition.
.TP
.B -c, --cache N
sets tree cache node number to passed value. This affects very much
behavior of libreiser4. It affects speed, tree allocation, etc.
.SH BROWSING OPTIONS
.TP
.B -k, --cat
browses passed file like standard cat and ls programs.
.SH PRINT OPTIONS
.TP
.B -t, --print-tree
prints the internal tree.
.TP
.B -b, --print-block N
prints the block associated with the passed block number.
.TP
.B -n, --print-nodes FILE
prints all nodes that the passed file lies in.
.TP
.B -i, --print-file
prints all items that the passed file consists of.
.TP
.B -s, --print-super
prints the both super blocks: master super block and format specific one.
.TP
.B -j, --print-journal
prints the journal with not yet commited transactions (if any).
.TP
.B -a, --print-alloc
prints the block allocator data.
.TP
.B -d, --print-oid
prints the oid allocator data.
.SH METADATA OPTIONS
.TP
.B -P, --pack-metadata
fetches filesystem metadata and writes them to the standard output.
.TP
.B -U, --unpack-metadata
reads filesystem metadata stream from the stdandard input and constructs 
a new filesystem based on the metadata. debugfs.reiser4 --pack-metadata <FS1> | 
debugfs.reiser4 --unpack-metadata <FS2> and then debugfs.reiser4 --pack-metadata 
<FS2> produces a stream equivalent to the first one.
.SH PLUGIN OPTIONS
.TP
.B -p, --print-profile
prints the plugin profile. This is the set of default plugins used for all
parts of a filesystem -- format, nodes, files, directories, hashes, etc. If
--override is specified, then prints modified plugins.
.TP
.B -l, --print-plugins
prints all plugins libreiser4 knows about.
.TP
.B -o, --override TYPE=PLUGIN, ...
overrides the default plugin of the type "TYPE" by the plugin "PLUGIN"
in the plugin profile.
.SH Examples:
.sp 1
debugfs.reiser4 -o nodeptr=nodeptr41,hash=rupasov_hash /dev/hda2
.RS
.SH REPORTING BUGS
Report bugs to <reiserfs-devel@vger.kernel.org>
.SH SEE ALSO
.BR measurefs.reiser4(8),
.BR mkfs.reiser4(8),
.BR fsck.reiser4(8)
.SH AUTHOR
This manual page was written by Yury Umanets <umka@namesys.com>
